let obj = {name: 'kaho', age: 18, height: 170}
let {name, ...copy} = obj
// console.log(copy)

let arr = [1,2,3]
// console.log(Math.max(...arr))

let obj_watch = new Proxy(obj, {
    get(target, property, receiver) {
        console.log('获取到了数据')
        return Reflect.get(target, property, receiver)
    },

    set(target, property, value, receiver) {
        console.log('数据改变了')
        return Reflect.set(target, property, value, receiver)
    }
})

// obj_watch.name = 'zxc'
// console.log(obj_watch.name)

let list = `
    <ul>
        <li>列表项1</li>
        <li>列表项2</li>
    </ul>
`;
console.log(list); // 正确输出，不存在报错
